package Graph;

//边
public class Edge {
    Vertex linked; //这条边对应的终点
    int weigth; //边的权重


    //重载 不填权重默认 是1
    public Edge(Vertex linked) {
        this(linked, 1);
    }

    public Edge(Vertex linked, int weigth) {
        this.linked = linked;
        this.weigth = weigth;
    }
}
